package com.avic.map.common.model;

import com.avic.map.common.model.enums.SocketDataTypeEnums;
import lombok.Data;

@Data
public class SocketCommonModel<T> {

    /**
     * 推送类型
     * shipArray
     * ship
     * car
     */
    private String dataType;

    private T object;

    public SocketCommonModel(SocketDataTypeEnums socketDataTypeEnums) {
        this.dataType = socketDataTypeEnums.getType();
    }

    public SocketCommonModel(SocketDataTypeEnums socketDataTypeEnums, T object) {
        this.dataType = socketDataTypeEnums.getType();
        this.object = object;
    }
}
